using System;
using Server.Mobiles;

namespace Server.Mobiles
{
	[CorpseName( "a plague rat corpse" )]
	
	public class PlagueRat : BaseCreature
	{
		[Constructable]
		public PlagueRat() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "a Clan Ribbon Plague Rat";
			Body = 0xD7;
            Hue = 1710;
			BaseSoundID = 0x188;

			SetStr( 59 );
			SetDex( 51 );
			SetInt( 17 );

			SetHits( 92 );
			SetMana( 0 );

			SetDamage( 4, 8 );

			SetDamageType( ResistanceType.Physical, 100 );

			SetResistance( ResistanceType.Physical, 35, 40 );
			SetResistance( ResistanceType.Fire, 20, 25 );
			SetResistance( ResistanceType.Cold, 25, 35 );
            SetResistance( ResistanceType.Energy, 35, 40); 

			SetSkill( SkillName.MagicResist, 25.1, 30.0 );
			SetSkill( SkillName.Tactics, 34.5, 40.0 );
			SetSkill( SkillName.Wrestling, 40.5, 45.0 );

			Fame = 300;
			Karma = -300;

			VirtualArmor = 38;
	
		}

		public override void GenerateLoot()
		{
			AddLoot( LootPack.Rich );
		}

		public override int Meat{ get{ return 1; } }
		public override int Hides{ get{ return 6; } }
		public override FoodType FavoriteFood{ get{ return FoodType.Fish | FoodType.Meat | FoodType.FruitsAndVegies | FoodType.Eggs; } }

		public PlagueRat(Serial serial) : base(serial)
		{
		}

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			writer.Write((int) 0);
		}

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();
		}
	}
}